package com.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.entity.Category;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-24 17:44:27
 */
public interface CategoryService extends IService<Category> {
    List<Category> listWithTree();

    IPage<Category> pageList(Integer current, Integer pageSize);

    void removeMenusByIds(Integer id);

    void updateDetail(Category category);

    /**
     * 找到catelogId的完整路径；
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    //PageUtils queryPage(Map<String, Object> params);
}

